package com.qf;

import com.qf.api.SiteService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Consumer {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[]{"consumer.xml"});
        context.start();
        SiteService siteService=(SiteService)context.getBean("siteService");
        String result = siteService.getName("qf");
        System.out.println("Hello Dubbo， 初识，拿到的结果是:"+result);
    }
}